#pragma once

#include "portrayable.h"

class Map;

class Mappable : public Portrayable{
public:
	const static int c_cell_size = 32;

	Mappable();
	virtual ~Mappable();
	void createMappable(Map *map, int x, int y);
	void setPos(int x, int y) {
		x_ = x;
		y_ = y;
	}
	void getPos(int &x, int &y) {
		x = x_;
		y = y_;
	}
	void setMap(Map *map) {
		map_ = map;
	}
	Map* getMap() { return map_; }
	

private:
	int x_, y_;
	Map* map_;

	friend class MapManager;
	friend class Map;
};